package dao;

import entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {

    Integer getcount(@Param("user") User user);
    List<User> getPageUsers(@Param("user") User user, @Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize);
    Integer adduser(@Param("user") User user);
    Integer deluser(Integer userid);
    User getUserById(Integer userid);
    Integer updateuser(@Param("user") User user);
    Integer topUp(@Param("userid")Integer userid,@Param("addmoney")Double addmoney);
}
